import request from '@/utils/request'

// 查询项目类型列表
export function projectType(query) {
  return request({
    url: '/dict/projectType/list',
    method: 'get',
    params: query
  })
}

// 查询项目类型单条详情
export function projectTypeEdit(params) {
  return request({
    url: '/dict/projectType/'+params,
    method: 'get',
  })
}

// 获取lrp数据
export function lrpProjectList(params) {
  return request({
    url: '/dict/projectType/lrpProjectList',
    method: 'get',
    params
  })
}

// 修改项目类型信息
export function projectTypeUpdate(data) {
  return request({
    url: '/dict/projectType',
    method: 'put',
    data: data
  })
}

// 新增项目类型
export function projectBatchComparison(data) {
  return request({
    url: '/dict/projectType/projectBatchComparison',
    method: 'post',
    data: data
  })
}

// 导出项目类型信息
export function projectTypeExport(params) {
  return request({
    url: '/dict/projectType/export',
    method: 'get',
  })
}